home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC]
/
NeXTSTEP 3.3 Dev Intel.iso
/
NextDeveloper
/
Headers
/
driverkit
/
IOConfigTable.h
< prev
next >
Wrap
Text File
|
1993-08-06
|
2KB
|
83 lines
/* Copyright (c) 1993 NeXT Computer, Inc. All rights reserved.
*
* IOConfigTable object. Usable both in the kernel and user space.
*
* HISTORY
* 29-Jan-93 Doug Mitchell at NeXT
* Created.
*/
#import <objc/Object.h>
#ifndef KERNEL
#import <objc/List.h>
#import <objc/NXBundle.h>
#endif KERNEL
@interface IOConfigTable : Object
{
@private
/*
* In the kernel, this will be a char * to the contents of the
* relevant file. In user space, this will be an id of
* an NXStringTable.
*/
void *_private;
}
/*
* Obtain the system-wide configuration table.
*/
+ newFromSystemConfig;
#ifndef KERNEL
/*
* Obtain the configuration table for a specified driver and unit number.
*/
+ newForDriver : (const char *)driverName
unit : (int)unit;
/*
* Obtain default configuration table for specified driver.
*/
+ newDefaultTableForDriver : (const char *)driverName;
/*
* Obtain a list of instances of IOConfigTable, one per active device on
* the system.
*/
+ (List *) tablesForInstalledDrivers;
/*
* Obtain a list of instances of IOConfigTable, one per driver
* loaded by the booter.
*/
+ (List *) tablesForBootDrivers;
/*
* Obtain an NXBundle for a driver associated with current IOConfigTable
* instance.
*/
- (NXBundle *)driverBundle;
#endif KERNEL
/*
* Obtain value for specified string key. Returns NULL if key not found.
*/
- (const char *)valueForStringKey:(const char *)key;
- free;
#ifdef KERNEL
/*
* Free a string obtained by -stringValueForStringKey:
*/
+ (void)freeString : (const char *)string;
- (void)freeString : (const char *)string;
#endif KERNEL
@end